<html>
	<body>
		<script>

var counter = 0;

function Person(){
	this.name = "whocares";
}

//Person.prototype.id = counter++;

Person.prototype.getName = function(){
  return this.name;
};

function Me(){
	this.id = counter++;
  	this.name = "John Resig";
}
Me.prototype = new Person();

var me = new Me();
var me1 = new Me();
var me2 = new Me();

alert(me2.id);

		</script>
	</body>
</html>